chrome.contextMenus.create({
    type: 'normal',
	title: "不喜欢作者",
    id: 'user',
    contexts: ['all'],
    documentUrlPatterns: ['https://juejin.cn/pins/*'],
	onclick: blockUser
});

function blockUser(info, tab) {
    chrome.tabs.sendMessage(tab.id, { type: "user", tab, info});
}